#ifndef wxyautoindex_h_
#define wxyautoindex_h_
#include <wfcClient.h>
#include <pfcGlobal.h>
#include <wxyDrawing.h>
#include <vector>
int pad = 10;
//收集尺寸 放入链表
void CollectDimension(pfcModel_ptr mdl, vector<DimensionStruct> &Dimlist);
//尺寸位置排序函数
bool SortByLoc(const DimensionStruct &td1, const DimensionStruct &td2);
void SortDimensions(vector<DimensionStruct> &dims);
//尺寸位置排序函数 按视图排序
bool SortByView(const DimensionStruct &td1, const DimensionStruct &td2);
//尺寸位置排序函数 按角度排序
bool SortByAngle(const DimensionStruct &td1, const DimensionStruct &td2);
//尺寸位置排序函数 按距离排序
bool SortByDistance(const DimensionStruct &td1, const DimensionStruct &td2);
//创建球标
void CreateSymbolIndex(pfcDrawing_ptr drawing,
                       DimensionStruct dim,
                       pfcDetailSymbolInstInstructions_ptr symins,
                       xint index);
//计算球标位置
pfcPoint3D_ptr CalSymbolLoc(pfcDimension2D_ptr dimension);
//计算尺寸字符占位宽度
int CalDimensionValueWideth(pfcDimension2D_ptr dimension);
//线性尺寸居中 仅能计算水平和竖直尺寸
int SetDimensionMid(pfcDimension2D_ptr dimension, pfcPoint3Ds_ptr &Points);
//收集球标
int CollectSymbols(pfcDetailItems_ptr &DetailItems);
#endif